class Point<T> {
  x: T
  y: T
  z: T

  constructor(x: T, y: T, z: T) {
    this.x = x
    this.y = y
    this.z = z
  }
}

const p1 = new Point("111", "222", "333")
const p2 = new Point<string>("111", "222", "333")
const p3: Point<string> = new Point("111", "222", "333")

const names: string[] = ["abc", "fsa", "dsa"]
const names2: Array<string> = ["abc", "fsa", "dsa"]// 不推荐(react jsx <>)
